package com.tlxch.controller.teacher;

import com.tlxch.pojo.TGradewarnreport;
import com.tlxch.result.Result;
import com.tlxch.server.teacher.TGradewarnreportService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "成绩预警报告相关接口")
@Slf4j
@RestController
@RequestMapping("/teacher/TGradewarnreport")
public class TGradewarnreportController {
    @Autowired
    TGradewarnreportService tGradewarnreportService;

    @PostMapping("/add")
    @ApiOperation("添加预警并发送报告")
    public Result addTGradewarnreport(@RequestBody TGradewarnreport tGradewarnreport){
        tGradewarnreportService.add(tGradewarnreport);
        return Result.success();
    }
}
